@echo on

set INS-DRIVE=e:
set REPO=%INS-DRIVE%\REPO


rem set INS-DRIVE=%cd:~0,2%
rem Aktuelles Laufwerk mit \
rem set AKT-PATH=%~dp0

echo *** Energieoptionen anpassen***
powercfg -l | find "Maximale Leistung" > "%temp%\guid.tmp"
FOR /F "Tokens=4" %%i in ("%temp%\guid.tmp") do powercfg -s %%i
powercfg -H Off
del /q "%temp%\guid.tmp"

if not exist "c:\program files (x86)\windows live\installer\wlarp.exe" goto NO_WINDOWSLIVE
echo *** Entferne Windows Live ***
"c:\program files (x86)\windows live\installer\wlarp.exe" /cleanup:all /q
:NO_WINDOWSLIVE

if not exist "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\newfolder1" goto NO_NEWFOLDER1
echo *** Entferne Newfolder1 ***
rmdir /s /q "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\newfolder1"
:NO_NEWFOLDER1

if not exist "C:\ProgramData\Microsoft\Windows\Start Menu\Symantec Install NIS (Norton Internet Security).lnk" goto NO_NIS
echo *** Entferne Norton Internet Security ***
del /q "C:\ProgramData\Microsoft\Windows\Start Menu\Symantec Install NIS (Norton Internet Security).lnk"
:NO_NIS

if not exist "C:\ProgramData\Microsoft\Windows\Start Menu\Business-in-a-Box Installer.lnk" goto NO_BIB
echo *** Entferne Business in a Box ***
del /q "C:\ProgramData\Microsoft\Windows\Start Menu\Business-in-a-Box Installer.lnk"
:NO_BIB

if not exist "C:\ProgramData\Microsoft\Windows\Start Menu\Free Skype voice and video calls.lnk" goto NO_SKYPE
echo *** Entferne Skype ***
del /q "C:\ProgramData\Microsoft\Windows\Start Menu\Free Skype voice and video calls.lnk"
:NO_SKYPE

echo *** Entferne BingBar ***
MsiExec.exe /X{1E03DB52-D5CB-4338-A338-E526DD4D4DB1} /passive

echo *** Entferne VIP Access***
MsiExec.exe /X{E8D46836-CD55-453C-A107-A59EC51CB8DC} /passive /norestart

echo **** Installiere Office 2010 SP1 ***
"%REPO%\officesuite2010sp1-kb2460049-x86-fullfile-de-de.exe" /passive /norestart

echo *** Installiere Flash Player ***
d:
cd \
copy "%REPO%\install_flashplayer10ax_gtbd_aih-sic.exe" "%temp%\install_flashplayer.exe"
"%temp%\install_flashplayer.exe" /passive

echo *** Installiere Adobe Acrobat ***
msiexec /i "%REPO%\AdbeRdr1010_de_DE.msi" /passive /norestart /qb

echo *** Installiere Oracle Java ***
msiexec /i "%REPO%\jre1.6.0_26\jre1.6.0_26.msi" /passive /norestart /qb ADDLOCAL=ALL IEXPLORER=1 REBOOT=Suppress

pause